package net.dgg.zz.credential.company.dao;

import net.dgg.zz.credential.company.entity.Company;
import net.dgg.zz.credential.talent.entity.Talent;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface CompanyDao {
    /**
     *
     * @param company
     * @return
     */
    int insert(Company company);
    /**
     * 更新人才库
     * @param company
     * @return
     */
    int updateByPrimaryKey(Company company);
    /**
     * 查询公司信息
     * @param id
     * @return
     */
    Company selectByPrimaryKey(Long id);
    /**
     * 查询列表
     * @param params
     * @return
     */
    List<Company> selectComByWithPage(Map params);

    /**
     * 查询跟踪人
     * @return
     */
    List<Map> selectTracker();

    /**
     * 查询企业库
     */
    List<Map> selectCompany();
    /**
     * 判重
     */
    Integer queryExist(Map params);

    Integer queryExistEdit(Map params);

    Integer count(Map params);
}
